﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace RomBotUI.Helpers
{
    public class Externals
    {
        [DllImport( "micromacro.dll" )]
        public static extern int StartMicroMacro( int argc, string[] argv );

        [DllImport( "micromacro.dll", EntryPoint="#2" )]
        public static extern int Test( );

        [DllImport( "user32.dll", CharSet = CharSet.Unicode )]
        public static extern int MessageBox( IntPtr hWnd, String text, String caption, uint type );

        [DllImport( "TestDll.dll", EntryPoint="fnTestDll" )]
        public static extern int fnTestDll();


        [DllImport( "user32.dll", CharSet = CharSet.Auto )]
        public static extern int PostMessage( IntPtr hWnd, int wMsg, int wParam, uint lParam );


        [DllImport( "user32.dll" )]
        public static extern uint MapVirtualKey( uint uCode, uint uMapType );

        [DllImport( "user32.dll" )]
        public static extern byte VkKeyScan( char ch );

        public const int WM_KEYDOWN = 0x100;
        public const uint VK_A = 0x41;
    }
}
